package org.shiro.basic.constant;

import java.io.Serializable;

/**
 * Shiro相关常量配置
 *
 * @author LiKun
 * @date 2021/11/2 13:46
 */
public class ShiroConstant implements Serializable {
    /**
     * 加密算法循环加密次数
     */
    public static final int ITERATIONS = 9;

    /**
     * token信息前缀
     */
    public static final String SUCCESS = "操作成功";

    /**
     * 账号未登录
     */
    public static final String NOT_LOGIN = "用户未登录";

    /**
     * token信息前缀
     */
    public static final String STARTER = "Token ";

    /**
     * 存放token信息的头部key值
     */
    public static final String HEADER = "Authorize";

    /**
     * 存放在缓存中的session主题的标识
     */
    public static final String SHIRO_PRINCIPAL_ID = "id";
}
